<template>
  <div class="">
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <PersonList :personList="personList"></PersonList>
  </div>
</template>

<script>
import PersonList from "../../components/personList.vue";
import { getPersonList } from "@/network/request";

export default {
  data() {
    return {
      personList: [],
    };
  },
  mounted() {
    getPersonList().then(({ data }) => {
      console.log(data.data);
      this.personList = data.data;
    });
  },

  methods: {},
  components: { PersonList },
};
</script>

<style lang="scss" scoped></style>
